package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
@ToString
public class Department {
    private Long id;

    private String name;

    private String sn;

    public String getJsonData() {
    Map<String,Object> map=new HashMap();
    map.put("id",this.id);
    map.put("name",this.name);
    map.put("sn",this.sn);
    return JSON.toJSON(map).toString();
    }
}